package com.lzx.iteam;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import com.lzx.iteam.util.ImageLoaderInterface;

/**
 * Created by zhangshuai on 15/11/5.
 */
public class RegCodeActivity extends Activity implements View.OnClickListener{

    private LinearLayout mLlBack;
    private ImageView mIvCode;
    private String codeImage;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.reg_code_layout);
        initView();
        codeImage = getIntent().getStringExtra("code_image");
        ImageLoaderInterface.imageLoader.displayImage(codeImage,mIvCode);

    }

    public void initView(){

        mLlBack = (LinearLayout) findViewById(R.id.code_ll_back);
        mIvCode = (ImageView) findViewById(R.id.code_iv_reg);
        mLlBack.setOnClickListener(this);
    }

    @Override
    public void onClick(View view) {
        switch (view.getId()){
            case R.id.code_ll_back:
                finish();
                break;
        }
    }
}
